package cn.wolfcode.mapper;

import cn.wolfcode.domain.ConsumptionItem;
import cn.wolfcode.domain.ConsumptionItemExample;
import cn.wolfcode.domain.ConsumptionItemKey;

import java.util.List;

import cn.wolfcode.domain.ConsumptionItem;
import org.apache.ibatis.annotations.Param;

public interface ConsumptionItemMapper {
    int countByExample(ConsumptionItemExample example);

    int deleteByExample(ConsumptionItemExample example);

    int deleteByPrimaryKey(ConsumptionItemKey key);

    int insert(ConsumptionItem record);

    int insertSelective(ConsumptionItem record);

    List<ConsumptionItem> selectByExample(ConsumptionItemExample example);

    ConsumptionItem selectByPrimaryKey(ConsumptionItemKey key);

    int updateByExampleSelective(@Param("record") ConsumptionItem record,
                                 @Param("example") ConsumptionItemExample example);

    int updateByExample(@Param("record") ConsumptionItem record,
                        @Param("example") ConsumptionItemExample example);

    int updateByPrimaryKeySelective(ConsumptionItem record);

    int updateByPrimaryKey(ConsumptionItem record);

    List<ConsumptionItem> selectAll();

    List<ConsumptionItem> selectByCno(String cno);

    void deleteByCno(String cno);

}